package com.ruoyi.hqfinance.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.hqfinance.domain.HqNavigationPolicy;
import com.ruoyi.hqfinance.domain.vo.HqNavigationPolicyVo;
import com.ruoyi.hqfinance.mapper.HqNavigationPolicyMapper;
import com.ruoyi.hqfinance.service.HqNavigationPolicyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HqNavigationPolicyServiceImpl implements HqNavigationPolicyService {
    @Autowired
    private HqNavigationPolicyMapper hqNavigationPolicyMapper;
    @Override
    public List<HqNavigationPolicy> search(HqNavigationPolicyVo vo) {
        PageHelper.startPage(vo.getPageDate());
        return hqNavigationPolicyMapper.search(vo);
    }
}
